﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using OgilvyOne.Model;
using OgilvyOne.BLL;

public partial class admin_allergy_mama_mama_video_list : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (!IsPostBack)
        {
            //this.headers.Text = new ColumnBll().LayeridColumnConNaiv(Request.Params["layerid"]);
            Grid_viewBild();
        }
    }

    private void Grid_viewBild()
    {
        DataTable dt=BLLArticleInfo.getMama();
        GridView1.DataSource = dt;
        GridView1.AllowPaging = false;
        GridView1.DataBind();
        //this.pagehtml.Text = getPageHtml(GridView1.PageCount, GridView1.PageIndex + 1, datalist.Count);
    }

    protected void Add_click(object sender, EventArgs e)
    {
        Response.Redirect("mama_video_detail.aspx?layerid=" + Request.Params["layerid"], true);
    }



    protected void Delone_click(object sender, EventArgs e)
    {
        string id = ((LinkButton)sender).CommandArgument;
        BLLArticleInfo.delMama(id);
        Grid_viewBild();
    }



    protected void Mod_click(object sender, EventArgs e)
    {
        Response.Redirect("mama_video_detail.aspx?id=" + ((LinkButton)sender).CommandArgument, true);
    }
}
